package com.wimcorp.magic.dataloader.dto;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;



public class TypeDTO  implements Serializable {

	private static final long serialVersionUID = 1L;


	private Long id;

	private String type;

	public TypeDTO() {

	}

	public TypeDTO(String type) {
		this.type = type;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public boolean equals(Object o) {
		if (!(o instanceof TypeDTO)) {
			return false;
		}
		return ((TypeDTO) o).getType().equals(type);
	}

	@Override
	public int hashCode() {
		return type.hashCode();
	}
}
